package com.guchenbo.springboot.origin;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author guchenbo
 * @date 2022/6/27
 */
//@RestController("notification")
public class OrderNotificationWebSocketController {

    @GetMapping
    public void test(@RequestParam String merchantId) {
        OrderNotificationWebSocket.sendMessage(merchantId, "有新订单啦");
    }
}
